Skip to content

add gosec linter, various small fixes#739

Merged
tzdybal merged 4 commits intoevstack:mainfrom
astriaorg:noot/cleanups
Feb 24, 2023
Merged

add gosec linter, various small fixes#739
tzdybal merged 4 commits intoevstack:mainfrom
astriaorg:noot/cleanups

Conversation

@noot
Copy link
Copy Markdown
Contributor

@noot noot commented Feb 19, 2023

A few small fixes, added the gosec linter since it caught a few issues. I ignored all the math/rand usages, but I'm happy to switch them to crypto/rand if you'd like to not have the nolints.

@noot noot requested a review from tzdybal as a code owner February 19, 2023 21:32
@tzdybal tzdybal requested review from a team, Manav-Aggarwal and tuxcanfly and removed request for a team February 20, 2023 13:48
Comment thread rpc/server.go Outdated
Comment thread da/test/da_test.go
Copy link
Copy Markdown
Contributor

@gupadhyaya gupadhyaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would leave the math/rand as is, since crpto/rand is atleast an order magnitude expensive.

Copy link
Copy Markdown
Contributor

@gupadhyaya gupadhyaya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tzdybal tzdybal enabled auto-merge (squash) February 24, 2023 07:31
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Base: 54.97% // Head: 54.81% // Decreases project coverage by -0.17% ⚠️

Coverage data is based on head (2b32b30) compared to base (eefb568).
Patch coverage: 50.00% of modified lines in pull request are covered.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #739      +/-   ##
==========================================
- Coverage   54.97%   54.81%   -0.17%     
==========================================
  Files          52       52              
  Lines        9824     9823       -1     
==========================================
- Hits         5401     5384      -17     
- Misses       3630     3642      +12     
- Partials      793      797       +4     
Impacted Files Coverage Δ
node/full.go 61.80% <ø> (-0.17%) ⬇️
types/serialization.go 75.10% <0.00%> (-0.32%) ⬇️
block/manager.go 64.00% <100.00%> (-0.31%) ⬇️
da/mock/mock.go 73.75% <100.00%> (ø)
types/validation.go 37.20% <0.00%> (-13.96%) ⬇️
rpc/json/ws.go 53.96% <0.00%> (-7.94%) ⬇️
state/executor.go 64.73% <0.00%> (-0.73%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@tzdybal tzdybal merged commit 3223ff5 into evstack:main Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants